/*******************************************************************************
* Copyright (C) 2019 China Micro Semiconductor Limited Company. All Rights Reserved.
*
* This software is owned and published by:
* CMS LLC, No 2609-10, Taurus Plaza, TaoyuanRoad, NanshanDistrict, Shenzhen, China.
*
* BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND
* BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT.
*
* This software contains source code for use with CMS
* components. This software is licensed by CMS to be adapted only
* for use in systems utilizing CMS components. CMS shall not be
* responsible for misuse or illegal use of this software for devices not
* supported herein. CMS is providing this software "AS IS" and will
* not be responsible for issues arising from incorrect user implementation
* of the software.
*
* This software may be replicated in part or whole for the licensed use,
* with the restriction that this Disclaimer and Copyright notice must be
* included with each copy of this software, whether used in part or whole,
* at all times.
*/
/*****************************************************************************/
/** \file main.h
**
** 
**
** History:
** 
*****************************************************************************/
#ifndef __MOTOR_DEBUG_H__
#define __MOTOR_DEBUG_H__
/*****************************************************************************/
/* Include files */
/*****************************************************************************/





/*****************************************************************************/
/* Global pre-processor symbols/macros ('#define') */
/*****************************************************************************/
#define TEST_SIGNAL1_EN              0   /*cmp0 on = high off = low*/
#define TEST_SIGNAL2_EN              0   //enable test signal
#define TEST_SIGNAL3_EN              0   //enable test signal


#if(TEST_SIGNAL1_EN)

#define TEST_SIGNAL1              LED1

#define TEST_SIGNAL1_HIGH  TEST_SIGNAL1 = 1
#define TEST_SIGNAL1_LOW  TEST_SIGNAL1 = 0
#define TEST_SIGNAL1_INVERT  TEST_SIGNAL1 = ~TEST_SIGNAL1;

#else

#define TEST_SIGNAL1_HIGH    
#define TEST_SIGNAL1_LOW  
#define TEST_SIGNAL1_INVERT  


#endif


#if(TEST_SIGNAL2_EN)

#define TEST_SIGNAL2              LED1

#define TEST_SIGNAL2_HIGH  TEST_SIGNAL2 = 1
#define TEST_SIGNAL2_LOW  TEST_SIGNAL2 = 0
#define TEST_SIGNAL2_INVERT  TEST_SIGNAL2 = ~TEST_SIGNAL2;

#else

#define TEST_SIGNAL2_HIGH  
#define TEST_SIGNAL2_LOW  
#define TEST_SIGNAL2_INVERT  


#endif


#if(TEST_SIGNAL3_EN)

#define TEST_SIGNAL3              LED1

#define TEST_SIGNAL3_HIGH  TEST_SIGNAL3 = 1
#define TEST_SIGNAL3_LOW  TEST_SIGNAL3 = 0
#define TEST_SIGNAL3_INVERT  TEST_SIGNAL3 = ~TEST_SIGNAL3

#else

#define TEST_SIGNAL3_HIGH  
#define TEST_SIGNAL3_LOW  
#define TEST_SIGNAL3_INVERT  


#endif


/*****************************************************************************/
/* Global type definitions ('typedef') */
/*****************************************************************************/

/*****************************************************************************/
/* Global variable declarations ('extern', definition in C source) */
/*****************************************************************************/
extern	unsigned int ucChkDirTB[8];

/*****************************************************************************/
/* Global function prototypes ('extern', definition in C source) */
/*****************************************************************************/

void MD_Check_Driver(void);
void MD_Self_Check_Driver(void);
void MD_Reset_Indication(void);


#endif /* __MOTOR_DEBUG_H__ */

